home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _FF057D60365743668DC76AF0B433F1FD < prev    next >
Encoding:
Text File  |  2004-06-23  |  1.5 KB  |  64 lines

  1. light("spot_shadowmap")
  2. {
  3.     pass()
  4.     {
  5.         VertexShader("SpotShadowMapVS.vsh")
  6.         tmu()
  7.         {
  8.             texgen("spotlight")
  9.  
  10.             texture()
  11.             {
  12.                 shadowmap()
  13.                 addressfunc("clamp", "clamp", "clamp")
  14.             }
  15.             ColorOp("arg1", "texture", "current", "current")
  16.         }
  17.  
  18.         tmu()
  19.         {
  20.             texgen("shadowmap_z")
  21.  
  22.             texture()
  23.             {
  24.                 image("spot_z_inv.png")
  25.                 addressfunc("clamp", "clamp", "clamp")
  26.                 filtering("no_filtering")
  27.             }
  28.             ColorOp("mul", "texture", "current", "current")
  29.  
  30.         }
  31.  
  32.         tmu()
  33.         {
  34.             texture()
  35.             {
  36.                 Image(%colortexture)
  37.                 addressfunc("clamp", "clamp", "clamp")
  38.             }
  39.             ColorOp("mul", "texture_a", "current", "current")
  40.         }
  41.  
  42.         tmu()
  43.         {
  44.             TexGen("world_from_model")
  45.             TexMtxDirPosScale(0.866025, 0.5, 0.0, 0, 0, 0, 0.000015, 0.00002, 0.000015)
  46.             TexMod("translate", "lin", 0, 0.02, 0, "lin", 0, 0.001, 0)
  47.             texture()
  48.             {
  49.                 Image(%cloudstexture)
  50.             }
  51.             ColorOp("mul", "inv_texture_a", "current", "current")
  52.             AlphaOp("arg2", "texture", "tfactor", "current")
  53.         }
  54.  
  55.         blendfunc("zero", "inv_src_color")
  56.  
  57.         depthfunc("lequal", 0)
  58.         tfactor(0,0,0,0)
  59.         blackfog()
  60.     }
  61.  
  62. }
  63.  
  64.